package net.realsee.service.wcs.data;

import com.baomidou.mybatisplus.extension.service.IService;
import net.realsee.domain.wcs.data.WcsWorkshop;
import net.realsee.domain.wcs.data.bo.WcsWorkshopBo;
import net.realsee.domain.wcs.data.vo.WcsWorkshopVo;
import net.realsee.framework.core.domain.PageQuery;
import net.realsee.framework.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 车间Service接口
 *
 * @author realsee
 * @date 2023-08-16
 */
public interface IWcsWorkshopService extends IService<WcsWorkshop> {

    /**
     * 查询车间
     */
    WcsWorkshopVo selectVoById(Long id);

    /**
     * 查询车间列表
     */
    TableDataInfo<WcsWorkshopVo> selectVoPage(WcsWorkshopBo bo, PageQuery pageQuery);

    /**
     * 查询车间列表
     */
    List<WcsWorkshopVo> selectVoList(WcsWorkshopBo bo);

    /**
     * 新增车间
     */
    Boolean insertByBo(WcsWorkshopBo bo);

    /**
     * 修改车间
     */
    Boolean updateByBo(WcsWorkshopBo bo);

    /**
     * 校验并批量删除车间信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids);
}
